package tx.bj12320.model;

import javax.persistence.*;

import org.hibernate.annotations.GenericGenerator;

import javax.validation.constraints.*;
import org.hibernate.validator.constraints.*;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.*;

import javacommon.base.*;
import javacommon.util.*;

import cn.org.rapid_framework.util.*;
import cn.org.rapid_framework.web.util.*;
import cn.org.rapid_framework.page.*;
import cn.org.rapid_framework.page.impl.*;

import tx.bj12320.model.*;
import tx.bj12320.model.enums.ActivityEnum;
import tx.bj12320.model.enums.WorkOrderTypeEnum;
import tx.bj12320.model.enums.BooleanEnum;
import tx.bj12320.dao.*;
import tx.bj12320.service.*;
import tx.bj12320.util.date.DateToDate;
import tx.bj12320.util.date.DateTool;
import tx.bj12320.util.date.WorkDate;
import tx.bj12320.vo.query.*;


@Entity
@Table(name = "BJ12320_TSZB_PROCESS_INFO")
public class TszbProcessInfo extends BaseEntity implements java.io.Serializable{
	private static final long serialVersionUID = 5454155825314635342L;

	//alias
	public static final String TABLE_ALIAS = "投诉转办流程信息";
	public static final String ALIAS_TSZB_PROCESS_INFO_ID = "tszbProcessInfoId";
	public static final String ALIAS_ORG_INFO_ID = "相对单位ID";
	public static final String ALIAS_WORK_ORDER_TYPE = "工单类型";
	public static final String ALIAS_CALLER_NAME = "来电人姓名";
	public static final String ALIAS_CALLER_NUMBER = "来电号码";
	public static final String ALIAS_AGE = "年龄";
	public static final String ALIAS_SEX = "性别";
	public static final String ALIAS_EDU_DEGREEE = "文化程度";
	public static final String ALIAS_CELL_PHONE = "手机";
	public static final String ALIAS_AREA = "城域";
	public static final String ALIAS_OCCUPATION = "职业";
	public static final String ALIAS_CONTACE_ADDRESS = "联系地址";
	public static final String ALIAS_PHONE = "固定电话";
	public static final String ALIAS_RELA_UNIT_NAME = "相对单位名称";
	public static final String ALIAS_RELA_UNIT_CODE = "相对单位编码";
	public static final String ALIAS_RELA_PERSON = "相对人";
	public static final String ALIAS_LIAISON_MAN = "联络员";
	public static final String ALIAS_LIAISON_CELL_PHONE = "联络员手机";
	public static final String ALIAS_HAPPEN_ADDRESS = "发生地点";
	public static final String ALIAS_UNIT_TYPE = "机构类别";
	public static final String ALIAS_UNIT_TYPE_DD_VALUE = "机构类别值";
	public static final String ALIAS_DEPARTMENT = "相对单位部门";
	public static final String ALIAS_LIAISON_PHONE = "联络员电话";
	public static final String ALIAS_HAPPEN_TIME = "发生时间";
	public static final String ALIAS_PONDERANCE = "严重性";
	public static final String ALIAS_PONDERANCE_DD_VALUE = "严重性值";
	public static final String ALIAS_WORK_ORDER_SOURCE = "工单来源";
	public static final String ALIAS_WORK_ORDER_SOURCE_DD_VALUE = "工单来源值";
	public static final String ALIAS_ZONE_NAME = "辖区";
	public static final String ALIAS_ZONE_DD_VALUE = "辖区值";
	public static final String ALIAS_INCOMING_CALL_CONTENT = "来电内容";
	public static final String ALIAS_IS_BE_WORK_ORDER = "是否形成工单";
	public static final String ALIAS_TIME_LIMIT = "时限";
	public static final String ALIAS_SHOULLI_PERSON = "受理坐席";
	public static final String ALIAS_SHOULI_TIME = "受理时间";
	public static final String ALIAS_CHUSHEN_PERSON = "初审班长";
	public static final String ALIAS_SHENHE_PERSON = "审核人员";
	public static final String ALIAS_RECEIVE_DEPARTMENT = "接收部门";
	public static final String ALIAS_RECEIVE_PERSON = "接收人";
	public static final String ALIAS_RECEIVE_TIME = "接收时间";
	public static final String ALIAS_LEADER_TOSHOW_CONTENT = "领导批示内容";
	public static final String ALIAS_LEADER_TOSHOW_SIGN = "领导批示签名";
	public static final String ALIAS_LEADER_TOSHOW_TIME = "领导批示时间";
	public static final String ALIAS_DEAL_DEPARTMENT = "办理部门";
	public static final String ALIAS_DEAL_PERSON = "办理人";
	public static final String ALIAS_DEAL_TIME = "办理时间";
	public static final String ALIAS_FEEDBACK_RELA_PERSON_TIME = "反馈相对人时间";
	public static final String ALIAS_DEAL_RESULT = "调查处理结果";
	public static final String ALIAS_RELA_PERSON_IDEA = "相对人对办理结果的意见";
	public static final String ALIAS_THSI_IS_TRUE = "此事是否属实";
	public static final String ALIAS_IS_IMPROVE = "是否根据工单改进工作";
	public static final String ALIAS_IS_IMPROVE_TEXT = "是否根据工单改进工作文本";
	public static final String ALIAS_LEADER_ISSUE = "领导签发";
	public static final String ALIAS_LEADER_ISSUE_SIGN = "领导签发签名";
	public static final String ALIAS_LEADER_ISSUE_TIME = "领导签发时间";
	public static final String ALIAS_IS_TRUE = "是否属实";
	public static final String ALIAS_WORK_ORDER_SORT = "工单分类";
	public static final String ALIAS_WORK_ORDER_SORT_DD_VALUE = "工单分类值";
	public static final String ALIAS_RESOLVE_WAY = "解决方式";
	public static final String ALIAS_EVENT_NAME = "事件名称";
	public static final String ALIAS_EVENT_HAPPEN_AREA = "事件发生地区";
	public static final String ALIAS_DETAIL_ADDRESS = "详细地址";
	public static final String ALIAS_AFFECT_PERSON_COUNT = "波及人数";
	public static final String ALIAS_INVASION_PERSON_COUNT = "发病人数";
	public static final String ALIAS_DEATH_PERSON_COUNT = "死亡人数";
	public static final String ALIAS_PROC_INST_ID = "流程实例ID";
	public static final String ALIAS_CURR_ACT_NAME = "当前流程活动名称";
	public static final String ALIAS_PROC_START_TIME = "流程创建时间";
	public static final String ALIAS_IS_PROC_END = "流程是否办理完成";
	public static final String ALIAS_PROC_END_TIME = "流程办理完成时间";
	public static final String ALIAS_CURR_SYS_USER_TYPE = "当前所属系统类别组";
	public static final String ALIAS_IS_REJECT = "是否报废";
	public static final String ALIAS_REJECT_TIME = "报废时间";
	public static final String ALIAS_CHENGBAN_ORG_INFO_ID = "chengbanOrgInfoId";
	public static final String ALIAS_BZCS_SCORE = "bzcsScore";
	public static final String ALIAS_XTDBSH_SCORE = "xtdbshScore";
	public static final String ALIAS_REJECT_REASON = "rejectReason";
	public static final String ALIAS_IS_SECRET = "isSecret";
	public static final String ALIAS_WORK_ORDER_ISSUE_TIME = "workOrderIssueTime";
	public static final String ALIAS_WORK_ORDER_DEAL_TIME = "workOrderDealTime";
	public static final String ALIAS_DELAY_STATE = "delayState";
	public static final String ALIAS_DELAY_REASON = "delayReason";
	public static final String ALIAS_DELAY_DAYS = "delayDays";
	public static final String ALIAS_WORK_ORDER_DEFINE = "workOrderDefine";
	public static final String ALIAS_WORK_ORDER_DEFINE_DD_VALUE = "workOrderDefineDdValue";
	public static final String ALIAS_ATTA_NAME = "attaName";
	public static final String ALIAS_ATTA_FILE_NAME = "attaFileName";
	public static final String ALIAS_CC_TICKETID = "ccTicketid";
	public static final String ALIAS_CC_CREATEUSERID = "ccCreateuserid";
	public static final String ALIAS_CC_WORKFFLOWID = "ccWorkfflowid";
	public static final String ALIAS_CC_XML = "ccXml";
	public static final String ALIAS_LAST_OPERATE_USER_INFO_ID = "最后操作用户ID";
	public static final String ALIAS_IS_EMERGENCY = "是否急件";
	public static final String ALIAS_LAST_OPERATE_IS_PASS = "lastOperateIsPass";
	public static final String ALIAS_QC_WORK_ORDER_PROBLEM = "qcWorkOrderProblem";
	public static final String ALIAS_QC_IS_PASS = "qcIsPass";
	public static final String ALIAS_QC_PERSON = "qcPerson";
	public static final String ALIAS_QC_TIME = "qcTime";

	//date formats
	public static final String FORMAT_HAPPEN_TIME = DATE_TIME_FORMAT;
	public static final String FORMAT_SHOULI_TIME = DATE_TIME_FORMAT;
	public static final String FORMAT_RECEIVE_TIME = DATE_TIME_FORMAT;
	public static final String FORMAT_LEADER_TOSHOW_TIME = DATE_TIME_FORMAT;
	public static final String FORMAT_DEAL_TIME = DATE_TIME_FORMAT;
	public static final String FORMAT_FEEDBACK_RELA_PERSON_TIME = DATE_TIME_FORMAT;
	public static final String FORMAT_LEADER_ISSUE_TIME = DATE_TIME_FORMAT;
	public static final String FORMAT_PROC_START_TIME = DATE_TIME_FORMAT;
	public static final String FORMAT_PROC_END_TIME = DATE_TIME_FORMAT;
	public static final String FORMAT_REJECT_TIME = DATE_TIME_FORMAT;
	public static final String FORMAT_WORK_ORDER_ISSUE_TIME = DATE_TIME_FORMAT;
	public static final String FORMAT_WORK_ORDER_DEAL_TIME = DATE_TIME_FORMAT;
	public static final String FORMAT_QC_TIME = DATE_FORMAT;


	//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
	//columns START
    /**
     * tszbProcessInfoId       db_column: TSZB_PROCESS_INFO_ID
     */

	private Long tszbProcessInfoId;
    /**
     * 相对单位ID       db_column: ORG_INFO_ID
     */

	private Long orgInfoId;
    /**
     * 工单类型       db_column: WORK_ORDER_TYPE
     */
	@Length(max=200)
	private java.lang.String workOrderType;
    /**
     * 来电人姓名       db_column: CALLER_NAME
     */
	@Length(max=200)
	private java.lang.String callerName;
    /**
     * 来电号码       db_column: CALLER_NUMBER
     */
	@Length(max=200)
	private java.lang.String callerNumber;
    /**
     * 年龄       db_column: AGE
     */
	@Length(max=200)
	private java.lang.String age;
    /**
     * 性别       db_column: SEX
     */
	@Length(max=200)
	private java.lang.String sex;
    /**
     * 文化程度       db_column: EDU_DEGREEE
     */
	@Length(max=200)
	private java.lang.String eduDegreee;
    /**
     * 手机       db_column: CELL_PHONE
     */
	@Length(max=200)
	private java.lang.String cellPhone;
    /**
     * 城域       db_column: AREA
     */
	@Length(max=200)
	private java.lang.String area;
    /**
     * 职业       db_column: OCCUPATION
     */
	@Length(max=200)
	private java.lang.String occupation;
    /**
     * 联系地址       db_column: CONTACE_ADDRESS
     */
	@Length(max=200)
	private java.lang.String contaceAddress;
    /**
     * 固定电话       db_column: PHONE
     */
	@Length(max=200)
	private java.lang.String phone;
    /**
     * 相对单位名称       db_column: RELA_UNIT_NAME
     */
	@Length(max=200)
	private java.lang.String relaUnitName;
    /**
     * 相对单位编码       db_column: RELA_UNIT_CODE
     */
	@Length(max=200)
	private java.lang.String relaUnitCode;
    /**
     * 相对人       db_column: RELA_PERSON
     */
	@Length(max=200)
	private java.lang.String relaPerson;
    /**
     * 联络员       db_column: LIAISON_MAN
     */
	@Length(max=200)
	private java.lang.String liaisonMan;
    /**
     * 联络员手机       db_column: LIAISON_CELL_PHONE
     */
	@Length(max=200)
	private java.lang.String liaisonCellPhone;
    /**
     * 发生地点       db_column: HAPPEN_ADDRESS
     */
	@Length(max=200)
	private java.lang.String happenAddress;
    /**
     * 机构类别       db_column: UNIT_TYPE
     */
	@Length(max=200)
	private java.lang.String unitType;
    /**
     * 机构类别值       db_column: UNIT_TYPE_DD_VALUE
     */
	@Length(max=200)
	private java.lang.String unitTypeDdValue;
    /**
     * 相对单位部门       db_column: DEPARTMENT
     */
	@Length(max=200)
	private java.lang.String department;
    /**
     * 联络员电话       db_column: LIAISON_PHONE
     */
	@Length(max=200)
	private java.lang.String liaisonPhone;
    /**
     * 发生时间       db_column: HAPPEN_TIME
     */

	private java.util.Date happenTime;
    /**
     * 严重性       db_column: PONDERANCE
     */
	@Length(max=200)
	private java.lang.String ponderance;
    /**
     * 严重性值       db_column: PONDERANCE_DD_VALUE
     */
	@Length(max=200)
	private java.lang.String ponderanceDdValue;
    /**
     * 工单来源       db_column: WORK_ORDER_SOURCE
     */
	@Length(max=200)
	private java.lang.String workOrderSource;
    /**
     * 工单来源值       db_column: WORK_ORDER_SOURCE_DD_VALUE
     */
	@Length(max=200)
	private java.lang.String workOrderSourceDdValue;
    /**
     * 辖区       db_column: ZONE_NAME
     */
	@Length(max=200)
	private java.lang.String zoneName;
    /**
     * 辖区值       db_column: ZONE_DD_VALUE
     */
	@Length(max=200)
	private java.lang.String zoneDdValue;
    /**
     * 来电内容       db_column: INCOMING_CALL_CONTENT
     */
	@Length(max=4000)
	private java.lang.String incomingCallContent;
    /**
     * 是否形成工单       db_column: IS_BE_WORK_ORDER
     */
	@Length(max=200)
	private java.lang.String isBeWorkOrder;
    /**
     * 时限       db_column: TIME_LIMIT
     */

	private Long timeLimit;
    /**
     * 受理坐席       db_column: SHOULLI_PERSON
     */
	@Length(max=200)
	private java.lang.String shoulliPerson;
    /**
     * 受理时间       db_column: SHOULI_TIME
     */

	private java.util.Date shouliTime;
    /**
     * 初审班长       db_column: CHUSHEN_PERSON
     */
	@Length(max=200)
	private java.lang.String chushenPerson;
    /**
     * 审核人员       db_column: SHENHE_PERSON
     */
	@Length(max=200)
	private java.lang.String shenhePerson;
    /**
     * 接收部门       db_column: RECEIVE_DEPARTMENT
     */
	@Length(max=200)
	private java.lang.String receiveDepartment;
    /**
     * 接收人       db_column: RECEIVE_PERSON
     */
	@Length(max=200)
	private java.lang.String receivePerson;
    /**
     * 接收时间       db_column: RECEIVE_TIME
     */

	private java.util.Date receiveTime;
    /**
     * 领导批示内容       db_column: LEADER_TOSHOW_CONTENT
     */
	@Length(max=2000)
	private java.lang.String leaderToshowContent;
    /**
     * 领导批示签名       db_column: LEADER_TOSHOW_SIGN
     */
	@Length(max=2000)
	private java.lang.String leaderToshowSign;
    /**
     * 领导批示时间       db_column: LEADER_TOSHOW_TIME
     */

	private java.util.Date leaderToshowTime;
    /**
     * 办理部门       db_column: DEAL_DEPARTMENT
     */
	@Length(max=200)
	private java.lang.String dealDepartment;
    /**
     * 办理人       db_column: DEAL_PERSON
     */
	@Length(max=200)
	private java.lang.String dealPerson;
    /**
     * 办理时间       db_column: DEAL_TIME
     */

	private java.util.Date dealTime;
    /**
     * 反馈相对人时间       db_column: FEEDBACK_RELA_PERSON_TIME
     */

	private java.util.Date feedbackRelaPersonTime;
    /**
     * 调查处理结果       db_column: DEAL_RESULT
     */
	@Length(max=200)
	private java.lang.String dealResult;
    /**
     * 相对人对办理结果的意见       db_column: RELA_PERSON_IDEA
     */
	@Length(max=2000)
	private java.lang.String relaPersonIdea;
    /**
     * 此事是否属实       db_column: THSI_IS_TRUE
     */
	@Length(max=200)
	private java.lang.String thsiIsTrue;
    /**
     * 是否根据工单改进工作       db_column: IS_IMPROVE
     */
	@Length(max=200)
	private java.lang.String isImprove;
    /**
     * 是否根据工单改进工作文本       db_column: IS_IMPROVE_TEXT
     */
	@Length(max=2000)
	private java.lang.String isImproveText;
    /**
     * 领导签发       db_column: LEADER_ISSUE
     */
	@Length(max=2000)
	private java.lang.String leaderIssue;
    /**
     * 领导签发签名       db_column: LEADER_ISSUE_SIGN
     */
	@Length(max=200)
	private java.lang.String leaderIssueSign;
    /**
     * 领导签发时间       db_column: LEADER_ISSUE_TIME
     */

	private java.util.Date leaderIssueTime;
    /**
     * 是否属实       db_column: IS_TRUE
     */
	@Length(max=200)
	private java.lang.String isTrue;
    /**
     * 工单分类       db_column: WORK_ORDER_SORT
     */
	@Length(max=200)
	private java.lang.String workOrderSort;
    /**
     * 工单分类值       db_column: WORK_ORDER_SORT_DD_VALUE
     */
	@Length(max=200)
	private java.lang.String workOrderSortDdValue;
    /**
     * 解决方式       db_column: RESOLVE_WAY
     */
	@Length(max=200)
	private java.lang.String resolveWay;
    /**
     * 事件名称       db_column: EVENT_NAME
     */
	@Length(max=200)
	private java.lang.String eventName;
    /**
     * 事件发生地区       db_column: EVENT_HAPPEN_AREA
     */
	@Length(max=200)
	private java.lang.String eventHappenArea;
    /**
     * 详细地址       db_column: DETAIL_ADDRESS
     */
	@Length(max=200)
	private java.lang.String detailAddress;
    /**
     * 波及人数       db_column: AFFECT_PERSON_COUNT
     */
	@Length(max=200)
	private java.lang.String affectPersonCount;
    /**
     * 发病人数       db_column: INVASION_PERSON_COUNT
     */
	@Length(max=200)
	private java.lang.String invasionPersonCount;
    /**
     * 死亡人数       db_column: DEATH_PERSON_COUNT
     */
	@Length(max=200)
	private java.lang.String deathPersonCount;
    /**
     * 流程实例ID       db_column: PROC_INST_ID
     */
	@Length(max=200)
	private java.lang.String procInstId;
    /**
     * 当前流程活动名称       db_column: CURR_ACT_NAME
     */
	@Length(max=200)
	private java.lang.String currActName;
    /**
     * 流程创建时间       db_column: PROC_START_TIME
     */

	private java.util.Date procStartTime;
    /**
     * 流程是否办理完成       db_column: IS_PROC_END
     */

	private Long isProcEnd;
    /**
     * 流程办理完成时间       db_column: PROC_END_TIME
     */

	private java.util.Date procEndTime;
    /**
     * 当前所属系统类别组       db_column: CURR_SYS_USER_TYPE
     */
	@Length(max=100)
	private java.lang.String currSysUserType;
    /**
     * 是否报废       db_column: IS_REJECT
     */

	private Long isReject;
    /**
     * 报废时间       db_column: REJECT_TIME
     */

	private java.util.Date rejectTime;
    /**
     * chengbanOrgInfoId       db_column: CHENGBAN_ORG_INFO_ID
     */

	private Long chengbanOrgInfoId;
    /**
     * bzcsScore       db_column: BZCS_SCORE
     */

	private Long bzcsScore;
    /**
     * xtdbshScore       db_column: XTDBSH_SCORE
     */

	private Long xtdbshScore;
    /**
     * rejectReason       db_column: REJECT_REASON
     */
	@Length(max=100)
	private java.lang.String rejectReason;
    /**
     * isSecret       db_column: IS_SECRET
     */

	private Long isSecret;
    /**
     * workOrderIssueTime       db_column: WORK_ORDER_ISSUE_TIME
     */

	private java.util.Date workOrderIssueTime;
    /**
     * workOrderDealTime       db_column: WORK_ORDER_DEAL_TIME
     */

	private java.util.Date workOrderDealTime;
    /**
     * delayState       db_column: DELAY_STATE
     */

	private Long delayState;
    /**
     * delayReason       db_column: DELAY_REASON
     */
	@Length(max=2000)
	private java.lang.String delayReason;
    /**
     * delayDays       db_column: DELAY_DAYS
     */

	private Long delayDays;
    /**
     * workOrderDefine       db_column: WORK_ORDER_DEFINE
     */
	@Length(max=200)
	private java.lang.String workOrderDefine;
    /**
     * workOrderDefineDdValue       db_column: WORK_ORDER_DEFINE_DD_VALUE
     */
	@Length(max=200)
	private java.lang.String workOrderDefineDdValue;
    /**
     * attaName       db_column: ATTA_NAME
     */
	@Length(max=200)
	private java.lang.String attaName;
    /**
     * attaFileName       db_column: ATTA_FILE_NAME
     */
	@Length(max=200)
	private java.lang.String attaFileName;
	   /**
     * ccTicketid       db_column: CC_TICKETID
     */
	@Length(max=200)
	private java.lang.String ccTicketid;
    /**
     * ccCreateuserid       db_column: CC_CREATEUSERID
     */
	@Length(max=200)
	private java.lang.String ccCreateuserid;
    /**
     * ccWorkfflowid       db_column: CC_WORKFFLOWID
     */
	@Length(max=200)
	private java.lang.String ccWorkfflowid;
    /**
     * ccXml       db_column: CC_XML
     */
	@Length(max=4000)
	private java.lang.String ccXml;
	 /**
     * lastOperateUserInfoId       db_column: LAST_OPERATE_USER_INFO_ID
     */

	private Long lastOperateUserInfoId;
    /**
     * isEmergency       db_column: IS_EMERGENCY
     */

	private Long isEmergency;
    /**
     * lastOperateIsPass       db_column: LAST_OPERATE_IS_PASS
     */

	private Long lastOperateIsPass;
	  /**
     * qcWorkOrderProblem       db_column: QC_WORK_ORDER_PROBLEM
     */
	@Length(max=4000)
	private java.lang.String qcWorkOrderProblem;
    /**
     * qcIsPass       db_column: QC_IS_PASS
     */
	@Length(max=200)
	private java.lang.String qcIsPass;
    /**
     * qcPerson       db_column: QC_PERSON
     */
	@Length(max=200)
	private java.lang.String qcPerson;
    /**
     * qcTime       db_column: QC_TIME
     */

	private java.util.Date qcTime;
	//columns END


	public TszbProcessInfo(){
	}

	public TszbProcessInfo(
		Long tszbProcessInfoId
	){
		this.tszbProcessInfoId = tszbProcessInfoId;
	}



	public void setTszbProcessInfoId(Long value) {
		this.tszbProcessInfoId = value;
	}

	@Id	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="BJ12320_TSZB_PROCESS_INFO_SEQU")
    @SequenceGenerator(name="BJ12320_TSZB_PROCESS_INFO_SEQU",allocationSize=1,initialValue=1, sequenceName="BJ12320_TSZB_PROCESS_INFO_SEQU")
	@Column(name = "TSZB_PROCESS_INFO_ID", unique = true, nullable = false, insertable = true, updatable = true, length = 0)
	public Long getTszbProcessInfoId() {
		return this.tszbProcessInfoId;
	}

	@Column(name = "ORG_INFO_ID", unique = false, nullable = true, insertable = true, updatable = true, length = 0)
	public Long getOrgInfoId() {
		return this.orgInfoId;
	}

	public void setOrgInfoId(Long value) {
		this.orgInfoId = value;
	}

	@Column(name = "WORK_ORDER_TYPE", unique = false, nullable = true, insertable = true, updatable = true, length = 200)
	public java.lang.String getWorkOrderType() {
		return this.workOrderType;
	}

	public void setWorkOrderType(java.lang.String value) {
		this.workOrderType = value;
	}

	@Column(name = "CALLER_NAME", unique = false, nullable = true, insertable = true, updatable = true, length = 200)
	public java.lang.String getCallerName() {
		return this.callerName;
	}

	public void setCallerName(java.lang.String value) {
		this.callerName = value;
	}

	@Column(name = "CALLER_NUMBER", unique = false, nullable = true, insertable = true, updatable = true, length = 200)
	public java.lang.String getCallerNumber() {
		return this.callerNumber;
	}

	public void setCallerNumber(java.lang.String value) {
		this.callerNumber = value;
	}

	@Column(name = "AGE", unique = false, nullable = true, insertable = true, updatable = true, length = 200)
	public java.lang.String getAge() {
		return this.age;
	}

	public void setAge(java.lang.String value) {
		this.age = value;
	}

	@Column(name = "SEX", unique = false, nullable = true, insertable = true, updatable = true, length = 200)
	public java.lang.String getSex() {
		return this.sex;
	}

	public void setSex(java.lang.String value) {
		this.sex = value;
	}

	@Column(name = "EDU_DEGREEE", unique = false, nullable = true, insertable = true, updatable = true, length = 200)
	public java.lang.String getEduDegreee() {
		return this.eduDegreee;
	}

	public void setEduDegreee(java.lang.String value) {
		this.eduDegreee = value;
	}

	@Column(name = "CELL_PHONE", unique = false, nullable = true, insertable = true, updatable = true, length = 200)
	public java.lang.String getCellPhone() {
		return this.cellPhone;
	}

	public void setCellPhone(java.lang.String value) {
		this.cellPhone = value;
	}

	@Column(name = "AREA", unique = false, nullable = true, insertable = true, updatable = true, length = 200)
	public java.lang.String getArea() {
		return this.area;
	}

	public void setArea(java.lang.String value) {
		this.area = value;
	}

	@Column(name = "OCCUPATION", unique = false, nullable = true, insertable = true, updatable = true, length = 200)
	public java.lang.String getOccupation() {
		return this.occupation;
	}

	public void setOccupation(java.lang.String value) {
		this.occupation = value;
	}

	@Column(name = "CONTACE_ADDRESS", unique = false, nullable = true, insertable = true, updatable = true, length = 200)
	public java.lang.String getContaceAddress() {
		return this.contaceAddress;
	}

	public void setContaceAddress(java.lang.String value) {
		this.contaceAddress = value;
	}

	@Column(name = "PHONE", unique = false, nullable = true, insertable = true, updatable = true, length = 200)
	public java.lang.String getPhone() {
		return this.phone;
	}

	public void setPhone(java.lang.String value) {
		this.phone = value;
	}

	@Column(name = "RELA_UNIT_NAME", unique = false, nullable = true, insertable = true, updatable = true, length = 200)
	public java.lang.String getRelaUnitName() {
		return this.relaUnitName;
	}

	public void setRelaUnitName(java.lang.String value) {
		this.relaUnitName = value;
	}

	@Column(name = "RELA_UNIT_CODE", unique = false, nullable = true, insertable = true, updatable = true, length = 200)
	public java.lang.String getRelaUnitCode() {
		return this.relaUnitCode;
	}

	public void setRelaUnitCode(java.lang.String value) {
		this.relaUnitCode = value;
	}

	@Column(name = "RELA_PERSON", unique = false, nullable = true, insertable = true, updatable = true, length = 200)
	public java.lang.String getRelaPerson() {
		return this.relaPerson;
	}

	public void setRelaPerson(java.lang.String value) {
		this.relaPerson = value;
	}

	@Column(name = "LIAISON_MAN", unique = false, nullable = true, insertable = true, updatable = true, length = 200)
	public java.lang.String getLiaisonMan() {
		return this.liaisonMan;
	}

	public void setLiaisonMan(java.lang.String value) {
		this.liaisonMan = value;
	}

	@Column(name = "LIAISON_CELL_PHONE", unique = false, nullable = true, insertable = true, updatable = true, length = 200)
	public java.lang.String getLiaisonCellPhone() {
		return this.liaisonCellPhone;
	}

	public void setLiaisonCellPhone(java.lang.String value) {
		this.liaisonCellPhone = value;
	}

	@Column(name = "HAPPEN_ADDRESS", unique = false, nullable = true, insertable = true, updatable = true, length = 200)
	public java.lang.String getHappenAddress() {
		return this.happenAddress;
	}

	public void setHappenAddress(java.lang.String value) {
		this.happenAddress = value;
	}

	@Column(name = "UNIT_TYPE", unique = false, nullable = true, insertable = true, updatable = true, length = 200)
	public java.lang.String getUnitType() {
		return this.unitType;
	}

	public void setUnitType(java.lang.String value) {
		this.unitType = value;
	}

	@Column(name = "UNIT_TYPE_DD_VALUE", unique = false, nullable = true, insertable = true, updatable = true, length = 200)
	public java.lang.String getUnitTypeDdValue() {
		return this.unitTypeDdValue;
	}

	public void setUnitTypeDdValue(java.lang.String value) {
		this.unitTypeDdValue = value;
	}

	@Column(name = "DEPARTMENT", unique = false, nullable = true, insertable = true, updatable = true, length = 200)
	public java.lang.String getDepartment() {
		return this.department;
	}

	public void setDepartment(java.lang.String value) {
		this.department = value;
	}

	@Column(name = "LIAISON_PHONE", unique = false, nullable = true, insertable = true, updatable = true, length = 200)
	public java.lang.String getLiaisonPhone() {
		return this.liaisonPhone;
	}

	public void setLiaisonPhone(java.lang.String value) {
		this.liaisonPhone = value;
	}

	@Transient
	public String getHappenTimeString() {
		return DateConvertUtils.format(getHappenTime(), FORMAT_HAPPEN_TIME);
	}
	public void setHappenTimeString(String value) {
		setHappenTime(DateConvertUtils.parse(value, FORMAT_HAPPEN_TIME,java.util.Date.class));
	}

	@Column(name = "HAPPEN_TIME", unique = false, nullable = true, insertable = true, updatable = true, length = 7)
	public java.util.Date getHappenTime() {
		return this.happenTime;
	}

	public void setHappenTime(java.util.Date value) {
		this.happenTime = value;
	}

	@Column(name = "PONDERANCE", unique = false, nullable = true, insertable = true, updatable = true, length = 200)
	public java.lang.String getPonderance() {
		return this.ponderance;
	}

	public void setPonderance(java.lang.String value) {
		this.ponderance = value;
	}

	@Column(name = "PONDERANCE_DD_VALUE", unique = false, nullable = true, insertable = true, updatable = true, length = 200)
	public java.lang.String getPonderanceDdValue() {
		return this.ponderanceDdValue;
	}

	public void setPonderanceDdValue(java.lang.String value) {
		this.ponderanceDdValue = value;
	}

	@Column(name = "WORK_ORDER_SOURCE", unique = false, nullable = true, insertable = true, updatable = true, length = 200)
	public java.lang.String getWorkOrderSource() {
		return this.workOrderSource;
	}

	public void setWorkOrderSource(java.lang.String value) {
		this.workOrderSource = value;
	}

	@Column(name = "WORK_ORDER_SOURCE_DD_VALUE", unique = false, nullable = true, insertable = true, updatable = true, length = 200)
	public java.lang.String getWorkOrderSourceDdValue() {
		return this.workOrderSourceDdValue;
	}

	public void setWorkOrderSourceDdValue(java.lang.String value) {
		this.workOrderSourceDdValue = value;
	}

	@Column(name = "ZONE_NAME", unique = false, nullable = true, insertable = true, updatable = true, length = 200)
	public java.lang.String getZoneName() {
		return this.zoneName;
	}

	public void setZoneName(java.lang.String value) {
		this.zoneName = value;
	}

	@Column(name = "ZONE_DD_VALUE", unique = false, nullable = true, insertable = true, updatable = true, length = 200)
	public java.lang.String getZoneDdValue() {
		return this.zoneDdValue;
	}

	public void setZoneDdValue(java.lang.String value) {
		this.zoneDdValue = value;
	}

	@Column(name = "INCOMING_CALL_CONTENT", unique = false, nullable = true, insertable = true, updatable = true, length = 4000)
	public java.lang.String getIncomingCallContent() {
		return this.incomingCallContent;
	}

	public void setIncomingCallContent(java.lang.String value) {
		this.incomingCallContent = value;
	}

	@Column(name = "IS_BE_WORK_ORDER", unique = false, nullable = true, insertable = true, updatable = true, length = 200)
	public java.lang.String getIsBeWorkOrder() {
		return this.isBeWorkOrder;
	}

	public void setIsBeWorkOrder(java.lang.String value) {
		this.isBeWorkOrder = value;
	}

	@Column(name = "TIME_LIMIT", unique = false, nullable = true, insertable = true, updatable = true, length = 0)
	public Long getTimeLimit() {
		return this.timeLimit;
	}

	public void setTimeLimit(Long value) {
		this.timeLimit = value;
	}

	@Column(name = "SHOULLI_PERSON", unique = false, nullable = true, insertable = true, updatable = true, length = 200)
	public java.lang.String getShoulliPerson() {
		return this.shoulliPerson;
	}

	public void setShoulliPerson(java.lang.String value) {
		this.shoulliPerson = value;
	}

	@Transient
	public String getShouliTimeString() {
		return DateConvertUtils.format(getShouliTime(), FORMAT_SHOULI_TIME);
	}
	public void setShouliTimeString(String value) {
		setShouliTime(DateConvertUtils.parse(value, FORMAT_SHOULI_TIME,java.util.Date.class));
	}

	@Column(name = "SHOULI_TIME", unique = false, nullable = true, insertable = true, updatable = true, length = 7)
	public java.util.Date getShouliTime() {
		return this.shouliTime;
	}

	public void setShouliTime(java.util.Date value) {
		this.shouliTime = value;
	}

	@Column(name = "CHUSHEN_PERSON", unique = false, nullable = true, insertable = true, updatable = true, length = 200)
	public java.lang.String getChushenPerson() {
		return this.chushenPerson;
	}

	public void setChushenPerson(java.lang.String value) {
		this.chushenPerson = value;
	}

	@Column(name = "SHENHE_PERSON", unique = false, nullable = true, insertable = true, updatable = true, length = 200)
	public java.lang.String getShenhePerson() {
		return this.shenhePerson;
	}

	public void setShenhePerson(java.lang.String value) {
		this.shenhePerson = value;
	}

	@Column(name = "RECEIVE_DEPARTMENT", unique = false, nullable = true, insertable = true, updatable = true, length = 200)
	public java.lang.String getReceiveDepartment() {
		return this.receiveDepartment;
	}

	public void setReceiveDepartment(java.lang.String value) {
		this.receiveDepartment = value;
	}

	@Column(name = "RECEIVE_PERSON", unique = false, nullable = true, insertable = true, updatable = true, length = 200)
	public java.lang.String getReceivePerson() {
		return this.receivePerson;
	}

	public void setReceivePerson(java.lang.String value) {
		this.receivePerson = value;
	}

	@Transient
	public String getReceiveTimeString() {
		return DateConvertUtils.format(getReceiveTime(), FORMAT_RECEIVE_TIME);
	}
	public void setReceiveTimeString(String value) {
		setReceiveTime(DateConvertUtils.parse(value, FORMAT_RECEIVE_TIME,java.util.Date.class));
	}

	@Column(name = "RECEIVE_TIME", unique = false, nullable = true, insertable = true, updatable = true, length = 7)
	public java.util.Date getReceiveTime() {
		return this.receiveTime;
	}

	public void setReceiveTime(java.util.Date value) {
		this.receiveTime = value;
	}

	@Column(name = "LEADER_TOSHOW_CONTENT", unique = false, nullable = true, insertable = true, updatable = true, length = 2000)
	public java.lang.String getLeaderToshowContent() {
		return this.leaderToshowContent;
	}

	public void setLeaderToshowContent(java.lang.String value) {
		this.leaderToshowContent = value;
	}

	@Column(name = "LEADER_TOSHOW_SIGN", unique = false, nullable = true, insertable = true, updatable = true, length = 2000)
	public java.lang.String getLeaderToshowSign() {
		return this.leaderToshowSign;
	}

	public void setLeaderToshowSign(java.lang.String value) {
		this.leaderToshowSign = value;
	}

	@Transient
	public String getLeaderToshowTimeString() {
		return DateConvertUtils.format(getLeaderToshowTime(), FORMAT_LEADER_TOSHOW_TIME);
	}
	public void setLeaderToshowTimeString(String value) {
		setLeaderToshowTime(DateConvertUtils.parse(value, FORMAT_LEADER_TOSHOW_TIME,java.util.Date.class));
	}

	@Column(name = "LEADER_TOSHOW_TIME", unique = false, nullable = true, insertable = true, updatable = true, length = 7)
	public java.util.Date getLeaderToshowTime() {
		return this.leaderToshowTime;
	}

	public void setLeaderToshowTime(java.util.Date value) {
		this.leaderToshowTime = value;
	}

	@Column(name = "DEAL_DEPARTMENT", unique = false, nullable = true, insertable = true, updatable = true, length = 200)
	public java.lang.String getDealDepartment() {
		return this.dealDepartment;
	}

	public void setDealDepartment(java.lang.String value) {
		this.dealDepartment = value;
	}

	@Column(name = "DEAL_PERSON", unique = false, nullable = true, insertable = true, updatable = true, length = 200)
	public java.lang.String getDealPerson() {
		return this.dealPerson;
	}

	public void setDealPerson(java.lang.String value) {
		this.dealPerson = value;
	}

	@Transient
	public String getDealTimeString() {
		return DateConvertUtils.format(getDealTime(), FORMAT_DEAL_TIME);
	}
	public void setDealTimeString(String value) {
		setDealTime(DateConvertUtils.parse(value, FORMAT_DEAL_TIME,java.util.Date.class));
	}

	@Column(name = "DEAL_TIME", unique = false, nullable = true, insertable = true, updatable = true, length = 7)
	public java.util.Date getDealTime() {
		return this.dealTime;
	}

	public void setDealTime(java.util.Date value) {
		this.dealTime = value;
	}

	@Transient
	public String getFeedbackRelaPersonTimeString() {
		return DateConvertUtils.format(getFeedbackRelaPersonTime(), FORMAT_FEEDBACK_RELA_PERSON_TIME);
	}
	public void setFeedbackRelaPersonTimeString(String value) {
		setFeedbackRelaPersonTime(DateConvertUtils.parse(value, FORMAT_FEEDBACK_RELA_PERSON_TIME,java.util.Date.class));
	}

	@Column(name = "FEEDBACK_RELA_PERSON_TIME", unique = false, nullable = true, insertable = true, updatable = true, length = 7)
	public java.util.Date getFeedbackRelaPersonTime() {
		return this.feedbackRelaPersonTime;
	}

	public void setFeedbackRelaPersonTime(java.util.Date value) {
		this.feedbackRelaPersonTime = value;
	}

	@Column(name = "DEAL_RESULT", unique = false, nullable = true, insertable = true, updatable = true, length = 200)
	public java.lang.String getDealResult() {
		return this.dealResult;
	}

	public void setDealResult(java.lang.String value) {
		this.dealResult = value;
	}

	@Column(name = "RELA_PERSON_IDEA", unique = false, nullable = true, insertable = true, updatable = true, length = 2000)
	public java.lang.String getRelaPersonIdea() {
		return this.relaPersonIdea;
	}

	public void setRelaPersonIdea(java.lang.String value) {
		this.relaPersonIdea = value;
	}

	@Column(name = "THSI_IS_TRUE", unique = false, nullable = true, insertable = true, updatable = true, length = 200)
	public java.lang.String getThsiIsTrue() {
		return this.thsiIsTrue;
	}

	public void setThsiIsTrue(java.lang.String value) {
		this.thsiIsTrue = value;
	}

	@Column(name = "IS_IMPROVE", unique = false, nullable = true, insertable = true, updatable = true, length = 200)
	public java.lang.String getIsImprove() {
		return this.isImprove;
	}

	public void setIsImprove(java.lang.String value) {
		this.isImprove = value;
	}

	@Column(name = "IS_IMPROVE_TEXT", unique = false, nullable = true, insertable = true, updatable = true, length = 2000)
	public java.lang.String getIsImproveText() {
		return this.isImproveText;
	}

	public void setIsImproveText(java.lang.String value) {
		this.isImproveText = value;
	}

	@Column(name = "LEADER_ISSUE", unique = false, nullable = true, insertable = true, updatable = true, length = 2000)
	public java.lang.String getLeaderIssue() {
		return this.leaderIssue;
	}

	public void setLeaderIssue(java.lang.String value) {
		this.leaderIssue = value;
	}

	@Column(name = "LEADER_ISSUE_SIGN", unique = false, nullable = true, insertable = true, updatable = true, length = 200)
	public java.lang.String getLeaderIssueSign() {
		return this.leaderIssueSign;
	}

	public void setLeaderIssueSign(java.lang.String value) {
		this.leaderIssueSign = value;
	}

	@Transient
	public String getLeaderIssueTimeString() {
		return DateConvertUtils.format(getLeaderIssueTime(), FORMAT_LEADER_ISSUE_TIME);
	}
	public void setLeaderIssueTimeString(String value) {
		setLeaderIssueTime(DateConvertUtils.parse(value, FORMAT_LEADER_ISSUE_TIME,java.util.Date.class));
	}

	@Column(name = "LEADER_ISSUE_TIME", unique = false, nullable = true, insertable = true, updatable = true, length = 7)
	public java.util.Date getLeaderIssueTime() {
		return this.leaderIssueTime;
	}

	public void setLeaderIssueTime(java.util.Date value) {
		this.leaderIssueTime = value;
	}

	@Column(name = "IS_TRUE", unique = false, nullable = true, insertable = true, updatable = true, length = 200)
	public java.lang.String getIsTrue() {
		return this.isTrue;
	}

	public void setIsTrue(java.lang.String value) {
		this.isTrue = value;
	}

	@Column(name = "WORK_ORDER_SORT", unique = false, nullable = true, insertable = true, updatable = true, length = 200)
	public java.lang.String getWorkOrderSort() {
		return this.workOrderSort;
	}

	public void setWorkOrderSort(java.lang.String value) {
		this.workOrderSort = value;
	}

	@Column(name = "WORK_ORDER_SORT_DD_VALUE", unique = false, nullable = true, insertable = true, updatable = true, length = 200)
	public java.lang.String getWorkOrderSortDdValue() {
		return this.workOrderSortDdValue;
	}

	public void setWorkOrderSortDdValue(java.lang.String value) {
		this.workOrderSortDdValue = value;
	}

	@Column(name = "RESOLVE_WAY", unique = false, nullable = true, insertable = true, updatable = true, length = 200)
	public java.lang.String getResolveWay() {
		return this.resolveWay;
	}

	public void setResolveWay(java.lang.String value) {
		this.resolveWay = value;
	}

	@Column(name = "EVENT_NAME", unique = false, nullable = true, insertable = true, updatable = true, length = 200)
	public java.lang.String getEventName() {
		return this.eventName;
	}

	public void setEventName(java.lang.String value) {
		this.eventName = value;
	}

	@Column(name = "EVENT_HAPPEN_AREA", unique = false, nullable = true, insertable = true, updatable = true, length = 200)
	public java.lang.String getEventHappenArea() {
		return this.eventHappenArea;
	}

	public void setEventHappenArea(java.lang.String value) {
		this.eventHappenArea = value;
	}

	@Column(name = "DETAIL_ADDRESS", unique = false, nullable = true, insertable = true, updatable = true, length = 200)
	public java.lang.String getDetailAddress() {
		return this.detailAddress;
	}

	public void setDetailAddress(java.lang.String value) {
		this.detailAddress = value;
	}

	@Column(name = "AFFECT_PERSON_COUNT", unique = false, nullable = true, insertable = true, updatable = true, length = 200)
	public java.lang.String getAffectPersonCount() {
		return this.affectPersonCount;
	}

	public void setAffectPersonCount(java.lang.String value) {
		this.affectPersonCount = value;
	}

	@Column(name = "INVASION_PERSON_COUNT", unique = false, nullable = true, insertable = true, updatable = true, length = 200)
	public java.lang.String getInvasionPersonCount() {
		return this.invasionPersonCount;
	}

	public void setInvasionPersonCount(java.lang.String value) {
		this.invasionPersonCount = value;
	}

	@Column(name = "DEATH_PERSON_COUNT", unique = false, nullable = true, insertable = true, updatable = true, length = 200)
	public java.lang.String getDeathPersonCount() {
		return this.deathPersonCount;
	}

	public void setDeathPersonCount(java.lang.String value) {
		this.deathPersonCount = value;
	}

	@Column(name = "PROC_INST_ID", unique = false, nullable = true, insertable = true, updatable = true, length = 200)
	public java.lang.String getProcInstId() {
		return this.procInstId;
	}

	public void setProcInstId(java.lang.String value) {
		this.procInstId = value;
	}

	@Column(name = "CURR_ACT_NAME", unique = false, nullable = true, insertable = true, updatable = true, length = 200)
	public java.lang.String getCurrActName() {
		return this.currActName;
	}

	public void setCurrActName(java.lang.String value) {
		this.currActName = value;
	}

	@Transient
	public String getProcStartTimeString() {
		return DateConvertUtils.format(getProcStartTime(), FORMAT_PROC_START_TIME);
	}
	public void setProcStartTimeString(String value) {
		setProcStartTime(DateConvertUtils.parse(value, FORMAT_PROC_START_TIME,java.util.Date.class));
	}

	@Column(name = "PROC_START_TIME", unique = false, nullable = true, insertable = true, updatable = true, length = 7)
	public java.util.Date getProcStartTime() {
		return this.procStartTime;
	}

	public void setProcStartTime(java.util.Date value) {
		this.procStartTime = value;
	}

	@Column(name = "IS_PROC_END", unique = false, nullable = true, insertable = true, updatable = true, length = 0)
	public Long getIsProcEnd() {
		return this.isProcEnd;
	}

	public void setIsProcEnd(Long value) {
		this.isProcEnd = value;
	}

	@Transient
	public String getProcEndTimeString() {
		return DateConvertUtils.format(getProcEndTime(), FORMAT_PROC_END_TIME);
	}
	public void setProcEndTimeString(String value) {
		setProcEndTime(DateConvertUtils.parse(value, FORMAT_PROC_END_TIME,java.util.Date.class));
	}

	@Column(name = "PROC_END_TIME", unique = false, nullable = true, insertable = true, updatable = true, length = 7)
	public java.util.Date getProcEndTime() {
		return this.procEndTime;
	}

	public void setProcEndTime(java.util.Date value) {
		this.procEndTime = value;
	}

	@Column(name = "CURR_SYS_USER_TYPE", unique = false, nullable = true, insertable = true, updatable = true, length = 100)
	public java.lang.String getCurrSysUserType() {
		return this.currSysUserType;
	}

	public void setCurrSysUserType(java.lang.String value) {
		this.currSysUserType = value;
	}

	@Column(name = "IS_REJECT", unique = false, nullable = true, insertable = true, updatable = true, length = 0)
	public Long getIsReject() {
		return this.isReject;
	}

	public void setIsReject(Long value) {
		this.isReject = value;
	}

	@Transient
	public String getRejectTimeString() {
		return DateConvertUtils.format(getRejectTime(), FORMAT_REJECT_TIME);
	}
	public void setRejectTimeString(String value) {
		setRejectTime(DateConvertUtils.parse(value, FORMAT_REJECT_TIME,java.util.Date.class));
	}

	@Column(name = "REJECT_TIME", unique = false, nullable = true, insertable = true, updatable = true, length = 7)
	public java.util.Date getRejectTime() {
		return this.rejectTime;
	}

	public void setRejectTime(java.util.Date value) {
		this.rejectTime = value;
	}

	@Column(name = "CHENGBAN_ORG_INFO_ID", unique = false, nullable = true, insertable = true, updatable = true, length = 0)
	public Long getChengbanOrgInfoId() {
		return this.chengbanOrgInfoId;
	}

	public void setChengbanOrgInfoId(Long value) {
		this.chengbanOrgInfoId = value;
	}

	@Column(name = "BZCS_SCORE", unique = false, nullable = true, insertable = true, updatable = true, length = 0)
	public Long getBzcsScore() {
		return this.bzcsScore;
	}

	public void setBzcsScore(Long value) {
		this.bzcsScore = value;
	}

	@Column(name = "XTDBSH_SCORE", unique = false, nullable = true, insertable = true, updatable = true, length = 0)
	public Long getXtdbshScore() {
		return this.xtdbshScore;
	}

	public void setXtdbshScore(Long value) {
		this.xtdbshScore = value;
	}

	@Column(name = "REJECT_REASON", unique = false, nullable = true, insertable = true, updatable = true, length = 100)
	public java.lang.String getRejectReason() {
		return this.rejectReason;
	}

	public void setRejectReason(java.lang.String value) {
		this.rejectReason = value;
	}

	@Column(name = "IS_SECRET", unique = false, nullable = true, insertable = true, updatable = true, length = 0)
	public Long getIsSecret() {
		return this.isSecret;
	}

	public void setIsSecret(Long value) {
		this.isSecret = value;
	}

	@Transient
	public String getWorkOrderIssueTimeString() {
		return DateConvertUtils.format(getWorkOrderIssueTime(), FORMAT_WORK_ORDER_ISSUE_TIME);
	}
	public void setWorkOrderIssueTimeString(String value) {
		setWorkOrderIssueTime(DateConvertUtils.parse(value, FORMAT_WORK_ORDER_ISSUE_TIME,java.util.Date.class));
	}

	@Column(name = "WORK_ORDER_ISSUE_TIME", unique = false, nullable = true, insertable = true, updatable = true, length = 7)
	public java.util.Date getWorkOrderIssueTime() {
		return this.workOrderIssueTime;
	}

	public void setWorkOrderIssueTime(java.util.Date value) {
		this.workOrderIssueTime = value;
	}

	@Transient
	public String getWorkOrderDealTimeString() {
		return DateConvertUtils.format(getWorkOrderDealTime(), FORMAT_WORK_ORDER_DEAL_TIME);
	}
	public void setWorkOrderDealTimeString(String value) {
		setWorkOrderDealTime(DateConvertUtils.parse(value, FORMAT_WORK_ORDER_DEAL_TIME,java.util.Date.class));
	}

	@Column(name = "WORK_ORDER_DEAL_TIME", unique = false, nullable = true, insertable = true, updatable = true, length = 7)
	public java.util.Date getWorkOrderDealTime() {
		return this.workOrderDealTime;
	}

	public void setWorkOrderDealTime(java.util.Date value) {
		this.workOrderDealTime = value;
	}

	@Column(name = "DELAY_STATE", unique = false, nullable = true, insertable = true, updatable = true, length = 0)
	public Long getDelayState() {
		return this.delayState;
	}

	public void setDelayState(Long value) {
		this.delayState = value;
	}

	@Column(name = "DELAY_REASON", unique = false, nullable = true, insertable = true, updatable = true, length = 2000)
	public java.lang.String getDelayReason() {
		return this.delayReason;
	}

	public void setDelayReason(java.lang.String value) {
		this.delayReason = value;
	}

	@Column(name = "DELAY_DAYS", unique = false, nullable = true, insertable = true, updatable = true, length = 0)
	public Long getDelayDays() {
		return this.delayDays;
	}

	public void setDelayDays(Long value) {
		this.delayDays = value;
	}

	@Column(name = "WORK_ORDER_DEFINE", unique = false, nullable = true, insertable = true, updatable = true, length = 200)
	public java.lang.String getWorkOrderDefine() {
		return this.workOrderDefine;
	}

	public void setWorkOrderDefine(java.lang.String value) {
		this.workOrderDefine = value;
	}

	@Column(name = "WORK_ORDER_DEFINE_DD_VALUE", unique = false, nullable = true, insertable = true, updatable = true, length = 200)
	public java.lang.String getWorkOrderDefineDdValue() {
		return this.workOrderDefineDdValue;
	}

	public void setWorkOrderDefineDdValue(java.lang.String value) {
		this.workOrderDefineDdValue = value;
	}

	@Column(name = "ATTA_NAME", unique = false, nullable = true, insertable = true, updatable = true, length = 200)
	public java.lang.String getAttaName() {
		return this.attaName;
	}

	public void setAttaName(java.lang.String value) {
		this.attaName = value;
	}

	@Column(name = "ATTA_FILE_NAME", unique = false, nullable = true, insertable = true, updatable = true, length = 200)
	public java.lang.String getAttaFileName() {
		return this.attaFileName;
	}

	public void setAttaFileName(java.lang.String value) {
		this.attaFileName = value;
	}

	@Column(name = "CC_TICKETID", unique = false, nullable = true, insertable = true, updatable = true, length = 200)
	public java.lang.String getCcTicketid() {
		return this.ccTicketid;
	}

	public void setCcTicketid(java.lang.String value) {
		this.ccTicketid = value;
	}

	@Column(name = "CC_CREATEUSERID", unique = false, nullable = true, insertable = true, updatable = true, length = 200)
	public java.lang.String getCcCreateuserid() {
		return this.ccCreateuserid;
	}

	public void setCcCreateuserid(java.lang.String value) {
		this.ccCreateuserid = value;
	}

	@Column(name = "CC_WORKFFLOWID", unique = false, nullable = true, insertable = true, updatable = true, length = 200)
	public java.lang.String getCcWorkfflowid() {
		return this.ccWorkfflowid;
	}

	public void setCcWorkfflowid(java.lang.String value) {
		this.ccWorkfflowid = value;
	}

	@Column(name = "CC_XML", unique = false, nullable = true, insertable = true, updatable = true, length = 4000)
	public java.lang.String getCcXml() {
		return this.ccXml;
	}

	public void setCcXml(java.lang.String value) {
		this.ccXml = value;
	}

	@Column(name = "LAST_OPERATE_USER_INFO_ID", unique = false, nullable = true, insertable = true, updatable = true, length = 0)
	public Long getLastOperateUserInfoId() {
		return this.lastOperateUserInfoId;
	}

	public void setLastOperateUserInfoId(Long value) {
		this.lastOperateUserInfoId = value;
	}

	@Column(name = "IS_EMERGENCY", unique = false, nullable = true, insertable = true, updatable = true, length = 0)
	public Long getIsEmergency() {
		return this.isEmergency;
	}

	public void setIsEmergency(Long value) {
		this.isEmergency = value;
	}

	@Column(name = "LAST_OPERATE_IS_PASS", unique = false, nullable = true, insertable = true, updatable = true, length = 0)
	public Long getLastOperateIsPass() {
		return this.lastOperateIsPass;
	}

	public void setLastOperateIsPass(Long value) {
		this.lastOperateIsPass = value;
	}

	@Column(name = "QC_WORK_ORDER_PROBLEM", unique = false, nullable = true, insertable = true, updatable = true, length = 4000)
	public java.lang.String getQcWorkOrderProblem() {
		return this.qcWorkOrderProblem;
	}

	public void setQcWorkOrderProblem(java.lang.String value) {
		this.qcWorkOrderProblem = value;
	}

	@Column(name = "QC_IS_PASS", unique = false, nullable = true, insertable = true, updatable = true, length = 200)
	public java.lang.String getQcIsPass() {
		return this.qcIsPass;
	}

	public void setQcIsPass(java.lang.String value) {
		this.qcIsPass = value;
	}

	@Column(name = "QC_PERSON", unique = false, nullable = true, insertable = true, updatable = true, length = 200)
	public java.lang.String getQcPerson() {
		return this.qcPerson;
	}

	public void setQcPerson(java.lang.String value) {
		this.qcPerson = value;
	}

	@Transient
	public String getQcTimeString() {
		return DateConvertUtils.format(getQcTime(), FORMAT_QC_TIME);
	}
	public void setQcTimeString(String value) {
		setQcTime(DateConvertUtils.parse(value, FORMAT_QC_TIME,java.util.Date.class));
	}

	@Column(name = "QC_TIME", unique = false, nullable = true, insertable = true, updatable = true, length = 7)
	public java.util.Date getQcTime() {
		return this.qcTime;
	}

	public void setQcTime(java.util.Date value) {
		this.qcTime = value;
	}


	private Set workOrderQcRecords = new HashSet(0);
	public void setWorkOrderQcRecords(Set<WorkOrderQcRecord> workOrderQcRecord){
		this.workOrderQcRecords = workOrderQcRecord;
	}

	@OneToMany(cascade = { CascadeType.MERGE }, fetch = FetchType.LAZY, mappedBy = "tszbProcessInfo")
	@OrderBy("workOrderQcRecordId ASC")
	public Set<WorkOrderQcRecord> getWorkOrderQcRecords() {
		return workOrderQcRecords;
	}

	private Set activityInfos = new HashSet(0);
	public void setActivityInfos(Set<ActivityInfo> activityInfo){
		this.activityInfos = activityInfo;
	}

	@OneToMany(cascade = { CascadeType.MERGE }, fetch = FetchType.LAZY, mappedBy = "tszbProcessInfo")
	public Set<ActivityInfo> getActivityInfos() {
		return activityInfos;
	}

	private OrgInfo orgInfo;
	public void setOrgInfo(OrgInfo orgInfo){
		this.orgInfo = orgInfo;
	}

	@ManyToOne(cascade = {}, fetch = FetchType.LAZY)
	@JoinColumns({
		@JoinColumn(name = "ORG_INFO_ID",nullable = false, insertable = false, updatable = false)
	})
	public OrgInfo getOrgInfo() {
		return orgInfo;
	}
	private UserInfo lastOperateUserInfo;
	public void setLastOperateUserInfo(UserInfo lastOperateUserInfo){
		this.lastOperateUserInfo = lastOperateUserInfo;
	}

	@ManyToOne(cascade = {}, fetch = FetchType.LAZY)
	@JoinColumns({
		@JoinColumn(name = "LAST_OPERATE_USER_INFO_ID",nullable = false, insertable = false, updatable = false)
	})
	public UserInfo getLastOperateUserInfo() {
		return lastOperateUserInfo;
	}

	public String toString() {
		return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
			.append("TszbProcessInfoId",getTszbProcessInfoId())
			.append("OrgInfoId",getOrgInfoId())
			.append("WorkOrderType",getWorkOrderType())
			.append("CallerName",getCallerName())
			.append("CallerNumber",getCallerNumber())
			.append("Age",getAge())
			.append("Sex",getSex())
			.append("EduDegreee",getEduDegreee())
			.append("CellPhone",getCellPhone())
			.append("Area",getArea())
			.append("Occupation",getOccupation())
			.append("ContaceAddress",getContaceAddress())
			.append("Phone",getPhone())
			.append("RelaUnitName",getRelaUnitName())
			.append("RelaUnitCode",getRelaUnitCode())
			.append("RelaPerson",getRelaPerson())
			.append("LiaisonMan",getLiaisonMan())
			.append("LiaisonCellPhone",getLiaisonCellPhone())
			.append("HappenAddress",getHappenAddress())
			.append("UnitType",getUnitType())
			.append("UnitTypeDdValue",getUnitTypeDdValue())
			.append("Department",getDepartment())
			.append("LiaisonPhone",getLiaisonPhone())
			.append("HappenTime",getHappenTime())
			.append("Ponderance",getPonderance())
			.append("PonderanceDdValue",getPonderanceDdValue())
			.append("WorkOrderSource",getWorkOrderSource())
			.append("WorkOrderSourceDdValue",getWorkOrderSourceDdValue())
			.append("ZoneName",getZoneName())
			.append("ZoneDdValue",getZoneDdValue())
			.append("IncomingCallContent",getIncomingCallContent())
			.append("IsBeWorkOrder",getIsBeWorkOrder())
			.append("TimeLimit",getTimeLimit())
			.append("ShoulliPerson",getShoulliPerson())
			.append("ShouliTime",getShouliTime())
			.append("ChushenPerson",getChushenPerson())
			.append("ShenhePerson",getShenhePerson())
			.append("ReceiveDepartment",getReceiveDepartment())
			.append("ReceivePerson",getReceivePerson())
			.append("ReceiveTime",getReceiveTime())
			.append("LeaderToshowContent",getLeaderToshowContent())
			.append("LeaderToshowSign",getLeaderToshowSign())
			.append("LeaderToshowTime",getLeaderToshowTime())
			.append("DealDepartment",getDealDepartment())
			.append("DealPerson",getDealPerson())
			.append("DealTime",getDealTime())
			.append("FeedbackRelaPersonTime",getFeedbackRelaPersonTime())
			.append("DealResult",getDealResult())
			.append("RelaPersonIdea",getRelaPersonIdea())
			.append("ThsiIsTrue",getThsiIsTrue())
			.append("IsImprove",getIsImprove())
			.append("IsImproveText",getIsImproveText())
			.append("LeaderIssue",getLeaderIssue())
			.append("LeaderIssueSign",getLeaderIssueSign())
			.append("LeaderIssueTime",getLeaderIssueTime())
			.append("IsTrue",getIsTrue())
			.append("WorkOrderSort",getWorkOrderSort())
			.append("WorkOrderSortDdValue",getWorkOrderSortDdValue())
			.append("ResolveWay",getResolveWay())
			.append("EventName",getEventName())
			.append("EventHappenArea",getEventHappenArea())
			.append("DetailAddress",getDetailAddress())
			.append("AffectPersonCount",getAffectPersonCount())
			.append("InvasionPersonCount",getInvasionPersonCount())
			.append("DeathPersonCount",getDeathPersonCount())
			.append("ProcInstId",getProcInstId())
			.append("CurrActName",getCurrActName())
			.append("ProcStartTime",getProcStartTime())
			.append("IsProcEnd",getIsProcEnd())
			.append("ProcEndTime",getProcEndTime())
			.append("CurrSysUserType",getCurrSysUserType())
			.append("IsReject",getIsReject())
			.append("RejectTime",getRejectTime())
			.append("ChengbanOrgInfoId",getChengbanOrgInfoId())
			.append("BzcsScore",getBzcsScore())
			.append("XtdbshScore",getXtdbshScore())
			.append("RejectReason",getRejectReason())
			.append("IsSecret",getIsSecret())
			.append("WorkOrderIssueTime",getWorkOrderIssueTime())
			.append("WorkOrderDealTime",getWorkOrderDealTime())
			.append("DelayState",getDelayState())
			.append("DelayReason",getDelayReason())
			.append("DelayDays",getDelayDays())
			.append("WorkOrderDefine",getWorkOrderDefine())
			.append("WorkOrderDefineDdValue",getWorkOrderDefineDdValue())
			.append("AttaName",getAttaName())
			.append("AttaFileName",getAttaFileName())
			.toString();
	}

	public int hashCode() {
		return new HashCodeBuilder()
			.append(getTszbProcessInfoId())
			.toHashCode();
	}

	public boolean equals(Object obj) {
		if(obj instanceof TszbProcessInfo == false) return false;
		if(this == obj) return true;
		TszbProcessInfo other = (TszbProcessInfo)obj;
		return new EqualsBuilder()
			.append(getTszbProcessInfoId(),other.getTszbProcessInfoId())
			.isEquals();
	}
	@Transient
	public java.lang.String getCurrActNameString() {
		return this.currActName==null?"":ActivityEnum.getByCode(this.currActName).getDesc();
	}
	@Transient
	public java.lang.String getWorkOrderTypeString() {
		return workOrderType==null?"":WorkOrderTypeEnum.getByCode(workOrderType).getDesc();
	}
	@Transient
	public String getIsProcEndString() {
		return isProcEnd==null?"":BooleanEnum.getByCode(isProcEnd).getDesc();
	}
	@Transient
	public Long getIsSecretCheck(){
		if(this.isSecret==1&&(this.currSysUserType.equals("HOSPITAL")||this.currSysUserType.equals("SECTION_BOARD_OF_HEALTH"))){
			return new Long(1);
		}else{
			return new Long(0);
		}
	}
	@Transient
	public boolean getIsUnReceiveTimeOvertimeString(){
		if(this.workOrderIssueTime!=null){
			if(DateTool.diffDays(new Date(), workOrderIssueTime)>1){
				return true;
			}else{
				return false;
			}
		}else{
			return false;
		}
	}
	@Transient
	public String getDealTimeDueDateString(){
		String str="";
		if(this.workOrderIssueTime!=null&&this.timeLimit!=null){
			str=WorkDate.getDueDate(workOrderIssueTime,this.timeLimit.intValue());
		}
		return str;
	}
	@Transient
	public boolean getIsDealTimeDueDateOvertimeString(){
		if(this.workOrderIssueTime!=null&&this.timeLimit!=null){
			if(DateTool.diffDays(new Date(), DateConvertUtils.parse(getDealTimeDueDateString(), "yyyy-MM-dd",java.util.Date.class))>1){
				return true;
			}else{
				return false;
			}
		}else{
			return false;
		}
	}
	/**
	 * 医院工单办结历时
	 * @return
	 */
	@Transient
	public Long getWorkOrderDealDays(){
		return (DateToDate.getWorkingDays( workOrderIssueTime,workOrderDealTime));
	}

	@Transient
	public long getDealTimeDueDateRemainDays(){
		if(this.workOrderIssueTime!=null){
			return DateToDate.getWorkingDays(new Date(),DateConvertUtils.parse(getDealTimeDueDateString(), "yyyy-MM-dd",java.util.Date.class));
		}else{
			return new Long(0);
		}
	}

	@Transient
	public String getProcStartTimeMonth(){
		DateFormat df=new SimpleDateFormat("yyyy-MM");
		return df.format(procStartTime);
	}
	@Transient
	public String getProcStartTimeDate(){
		DateFormat df=new SimpleDateFormat("yyyy-MM-dd");
		return df.format(procStartTime);
	}
	@Transient
	public String getProcStartTimeHour(){
		DateFormat df=new SimpleDateFormat("yyyy-MM-dd HH");
		return df.format(procStartTime);
	}
	@Transient
	public String getQcIsPassString() {
		return qcIsPass==null?"":BooleanEnum.getByCode(Long.valueOf(qcIsPass)).getDesc();
	}


}

